
from Products.CMFCore.utils import getToolByName
def uninstall(portal, reinstall=False):
    setup_tool = getToolByName(portal, 'portal_setup')
    # setup_tool.runAllImportStepsFromProfile('profile-Products.BigramSplitter:uninstall')
    
    setup_tool.setImportContext('profile-Products.BigramSplitter:uninstall')
    setup_tool.runAllImportSteps()
    setup_tool.setImportContext('profile-CMFPlone:plone')
    1/0
    return "Ran all uninstall steps."